#类变量演示

# class Person:
#     name = '小明'
#     age = 18
#     weight = 70

# if __name__ == '__main__':
#     print(Person.name)
#     print(Person.age)
#     print(Person.weight)

class Person:
    name = '小明'
    age = 18
    weight = 70

if __name__ == '__main__':
    print(Person.name)
    Person.name = "小红"
    print(Person.name)
    Person.xixi = 100
    print(Person.xixi)
    p = Person()
    p.age = 10
    print(p.age)
    print(Person.age)
    pp = Person()
    print(pp.age)
    Person.age = 1000
    print(p.age)
    print(pp.age)